<template>
  <center>
    <div class="accept-container">
      <iframe
        v-show="iframeState"
        id="show-iframe"
        frameborder="0"
        name="showHere"
        scrolling="auto"
        src="http://localhost:5601/app/canvas#/"
      ></iframe>
    </div>
  </center>
</template>

<script>
export default {
  name: "hello",
  data() {
    return {};
  },
  created() {
    this.iframeState = true;
  },
  mounted() {
    const oIframe = document.getElementById("show-iframe");
    // const deviceWidth = document.documentElement.clientWidth;
    const deviceWidth = 1400;
    const deviceHeight = 650;
    oIframe.style.width = deviceWidth + "px";
    oIframe.style.height = deviceHeight + "px";
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped></style>
